<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>    
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sj:head jqueryui="true" jquerytheme="redmond"></sj:head>
</head>
<body>
<h3>Service Premise Associate</h3>
<s:form theme="simple" action="associateServicePremiseAction">
	<s:text name="Project Code"></s:text>
	<s:textfield name="txtProjectCode"></s:textfield>
	<sj:submit button="true" value="Select"></sj:submit>
	<br>
	<s:url id="getPremiseUrl" action="getPremiseAssociationAction"  />
	<sjg:grid id="gridtable" caption="Customer Examples" dataType="json"
		href="%{getPremiseUrl}" pager="true" gridModel="gridModel"
		rowNum="15" rownumbers="true" onSelectRowTopics="rowselect">
			<sjg:gridColumn name="premiseName" index="premiseName" title="Premise Name" sortable="false" />
			<sjg:gridColumn name="address" index="address" title="Address" sortable="false" />
			<sjg:gridColumn name="phoneNumber" index="phoneNumber" title="Phone Number" sortable="false" />				
	</sjg:grid>
</s:form>
</body>
</html>